﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LituoPro.constant
{
    public class SystemConstant
    {
        public static readonly int PACKAGE_LENGTH = 108;

        public static readonly int PACKAGE_START_BYTE_DATA = 104;

        public static readonly string OPEN_SERIAL_PORT_RET_MSG_SUCCESS = "OPEN_SUCCESS";

        public static readonly string CLOSE_SERIAL_PORT_RET_MSG_SUCCESS = "CLOSE_SUCCESS";

        public static readonly string READ_SERIAL_PORT_RET_MSG_SUCCESS = "READ_SUCCESS";

        public static readonly string DATA_CHECK_SUM_MSG_ERROR = "CHECK_SUM_ERROR";

        public static readonly Byte[] DATA_LENGTH_BYTE = { 0X00, 0X0F };

        public static readonly Byte[] CLA_INS = { 0X80,0X2D };

        public static readonly Byte[] P1_P2 = { 0X00, 0X00 };

        public static readonly Byte[] LC = { 0X07 };

        public static readonly Byte[] START_BYTE = { 0X68 };

        public static readonly Byte[] SEND_DATA_LENGHT_BYTE = { 0X00, 0X1B };

        public static readonly Byte[] VER_BYTE = { 0X01 };

        public static readonly Byte[] TABLE_BYTE = { 0X60 };

        public static readonly Byte[] PAGE_BYTE = { 0X00 };

        public static readonly Byte[] CHANNEL_BYTE = { 0X03 };

        public static readonly Byte[] SEND_END_BYTE = { 0X16 };

        public static readonly Byte[] SEND_CPU_ID_BYTE = { 0X00, 0X00, 0X00, 0X00, 0X00, 0X00, 0X00, 0X00, 0X00, 0X00, 0X00, 0X00, 0X00, 0X00, 0X00, 0X00, };


        public static readonly string E_TRACK_NOx_DATA_UPDATE = "80610003";
        public static readonly string E_LOCOMOTIVE_CYLINDER_PRESS = "80620002";
        public static readonly string E_LOCOMOTIVE_DATA_UPDATE = "80620003";
    }
}
